﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using AutoRegistDependency.Component;
using AutoRegistDependency.Enum;

namespace AutoRegistDependency.Interface
{
    /// <summary>
    /// 组件定义接口
    /// </summary>
    public interface IRegistrationInitializer
    {
        /// <summary>
        /// 创建组件定义
        /// </summary>
        /// <param name="assemblies">程序集</param>
        /// <param name="globalLifeTimeType">全局生命周期</param>
        /// <param name="globalPropertyInjectType">全局注入类型</param>
        /// <param name="globalRegistrationType">全局</param>
        /// <returns></returns>
        ConcurrentDictionary<Type, List<ComponentDefinition>> CreateDefinitionDictionary(IEnumerable<Assembly> assemblies, LifeTimeType globalLifeTimeType, PropertyInjectType globalPropertyInjectType, RegistrationType globalRegistrationType);
    }
}
